<?php
namespace Android\Controller;
use Think\Controller;
class PocketController extends  Controller
{
    //发起活动
    public function startAct()
    {
        $info = M('activity');
        $data = $info->create();

        $success = $info->data($data)->add();
        if ($success) {
            echo "1";
        } else {
            echo "0";
        }
    }
    //商家优惠
    public  function shopcheap(){
        $info=D('shop');
        $shop_id=$_GET['shop_id'];
        $infos= $info->shopdetails($shop_id);
       echo json_encode($infos);
    }


}